package com.liuhengjia.flowablebasics.listener;

import org.flowable.task.service.delegate.DelegateTask;
import org.flowable.task.service.delegate.TaskListener;

public class MyListener implements TaskListener {
    @Override
    public void notify(DelegateTask delegateTask) {
        System.out.println("执行了");
        if(EVENTNAME_CREATE.equals(delegateTask.getEventName())) {
            delegateTask.setAssignee("xiaoyw");
        }
    }
}
